package org.jeecg.modules.common.security.plugin;

import com.baomidou.mybatisplus.core.toolkit.StringPool;
import org.jeecg.modules.common.security.visitor.SecurityExpressionVisitor;

import java.util.function.Function;

/**
 * @author xufeixiang
 * @Description TODO
 * @date 2022年06月11日 09:57
 */
public class PermissionPlugin extends AbstractSecurityPlugin {

    @Override
    public SecurityMethodConfig getSelectConfig() {
        return super.simpleSelect();
    }

    @Override
    public Function<SecurityExpressionVisitor.ColumnExpression, String> getColumnExpressionFunction() {
        return columnExpression -> StringPool.NULL;
    }
}
